package pers.kw.config.oauth;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator;
import org.springframework.stereotype.Component;

/**
 * 自定义OAuth异常信息返回值处理
 */
@Component
public class OAuth2ResponseExceptionTranslator implements WebResponseExceptionTranslator {

    private static final Logger logger = LoggerFactory.getLogger(OAuth2ResponseExceptionTranslator.class);

    @Override
    public ResponseEntity translate(Exception e) throws Exception {
        return null;
    }
}
